﻿@theme: "../refs/";

@import "@{theme}variables.less";
@import "@{theme}mixins.less";
@box-border-color: #c8c8c8;
//shopping cart table datalist module

table.cart-products-module {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid @box-border-color;
    border-spacing: 0;

    th {
        background-color: #d5d5d5;
        color: darken(@gray,5%);
        text-align: left;
        font-weight: 600;
        height: 30px;
        padding-left: 15px;
        font-size: 15px;
        border-right: 1px solid #AEAEAE;
    }

    td {
        padding: 10px;
        vertical-align: middle;
        border-bottom: 1px solid @table-border-color;

        .amount {
            display: inline-block;
            color: #666;
            font-weight: bold;
            font-size: 16px;
            text-align: center;
            width: 70px;
        }

        &.picture {
            width: 70px;
            margin: 0 auto;

            div {
                padding: 1px;

                img {
                    width: 67px;
                    height: 80px;
                }
            }
        }

        &.products {
            vertical-align: top;
        }

        &.subtotal {
            position: relative;

            .amount {
                display: block;
            }

            .remove {
                height: 25px;
                line-height: 25px;
                display: block;
                text-align: left;
                padding-left: 15px;
                color: #666;
                cursor: pointer;
                float: left;
                background: url() no-repeat 0 5px;
            }

            .remove-chkbox {
                float: left;
                margin-top: 4px;
                display: block;

                input {
                    display: none;
                }
            }
        }

        &.qty {
            .wrap {
                width: 80px;
                height: 35px;
                position: relative;
            }

            input.qty-input {
                display: block;
                position: absolute;
                left: 25px;
                width: 30px;
                padding-left: 0;
                padding-right: 0;
                text-align: center;
                border: 1px solid #ccc;
                top: 6px;
            }

            span {
                display: block;
                position: absolute;

                &.increase {
                    left: 60px;
                    width: 20px;
                    top: 6px;
                    font-size: 15px;
                    text-align: center;
                    cursor: pointer;
                    font-weight: bold;
                }

                &.decrease {
                    left: 0;
                    top: 5px;
                    text-align: center;
                    width: 25px;
                    font-size: 15px;
                    font-weight: bold;
                    cursor: pointer;
                }
            }
        }

        .product-name {
            line-height: 25px;
            height: 25px;

            a {
                font-size: 14px;
                text-decoration: none;
                display: inline-block;
                overflow: hidden;
            }
        }

        .product-attributes {
            overflow: hidden;
            clear: both;
            padding: 5px;

            .item {
                overflow: hidden;
                clear: both;

                .name, .value, .adj-price {
                    float: left;
                    margin-right: 5px;
                    height: 20px;
                    line-height: 20px;
                }

                .value {
                    .color-container {
                        position: relative;
                        display: block;
                        margin-top: 2px;
                    }

                    .color {
                        display: block;
                        background: none;
                        min-width: 10px;
                        text-align: center;
                        text-decoration: none;
                        color: #666;
                        border: 2px solid #e0e0e0;
                        width: 20px;
                        height: 11px;
                        padding: 0;
                        text-indent: -9999px;
                    }
                }
            }
        }

        .edit-item {
            height: 25px;
            line-height: 25px;
        }
    }
}

// order total module

.cart-ordertotal-module {
    width: 328px;
    min-height: 100px;
    border: 1px solid #bbbbbb;

    .item {
        //height: 30px;
        line-height: 30px;
        overflow: hidden;
        clear: both;

        &.gift-card {
            height: auto;
            overflow: hidden;
            padding: 5px;
            margin: 2px 0;
            border: 1px dashed #D4D1D1;
            border-left: 2px solid #DDDDDD;
        }

        .new-line {
            clear: both;
            float: none;
            overflow: hidden;
        }

        .remaining {
            float: left;
            text-align: left;
            color: @brand-success;
            font-size: 14px;
            padding-left: 5px;
        }

        .name {
            font-size: 14px;
            float: left;
            text-align: right;
            width: 90px;
        }

        .value {
            float: left;
            padding-left: 5px;
            text-align: left;
            color: #333;
        }

        .saving {
            float: left;
            color: @brand-primary;
            font-weight: bold;
            font-size: 16px;
        }

        .amount {
            color: @brand-success;
            font-weight: bold;
            font-size: 16px;
            text-align: center;
            width: 70px;
        }
    }
}

// selected checkout attributes module
.selected-checkout-attributes {
    padding: 10px;
    background: #f0f0f0;
    margin: 10px 0;
    border: 1px solid #EEE;
    line-height: 1.5em;
    font-size: 14px;
}

// checkout attributes module
.checkout-attributes-module {
    margin-top: 10px;
    border: 1px solid @box-border-color;

    .attributes-module {
        margin: 10px 0;
        font-size: 14px;
    }

    .option-list {
        padding: 0;
        margin: 0;
        overflow: hidden;

        li {
            float: left;
            margin-right: 10px;
        }
    }

    .attribute-item {
        clear: both;
        overflow: hidden;
        line-height: 30px;
        padding: 5px 0;
        border-bottom: 1px solid #F0F0F0;

        .attribute-name {
            float: left;
            width: 130px;
            padding-right: 10px;
            text-align: right;
        }

        .attribute-values {
            float: left;
            width: 650px;

            .color-squares {
                .selected-value .color {
                    border: 2px solid #df0001;
                    margin: -1px;
                    color: #df0001;
                    .box-shadow( 1px 1px 3px 0 rgba(0, 0, 0, 0.6));
                }

                input {
                    display: none;
                }

                .color {
                    display: block;
                    background: none;
                    min-width: 10px;
                    text-align: center;
                    text-decoration: none;
                    color: #666;
                    border: 2px solid #e0e0e0;
                    width: 25px;
                    height: 20px;
                    padding: 0;
                    cursor: pointer;
                    line-height: 32px;
                    outline: none;
                }

                .color-container {
                    position: relative;
                    display: block;

                    i {
                        position: absolute;
                        display: none;
                    }
                }

                .selected-value .color-container i {
                    display: block;
                    position: absolute;
                    bottom: 0;
                    right: 0;
                    width: 12px;
                    height: 12px;
                    overflow: hidden;
                    background: url('') /*../images/selected-icon.gif*/ no-repeat 0 0;
                    text-indent: -99em;
                }
            }


            .form-control {
                width: 140px;
                display: inline-block;
                height: 25px;
                padding-top: 2px;
                padding-bottom: 2px;
                line-height: 25px;
            }
        }
    }
}

//cart collaterals module

.cart-collaterals {
    margin-top: 10px;
    border: 1px solid @box-border-color;

    .deals {
        min-height: 50px;
        padding: 10px 10px;
        overflow: hidden;

        .form-control {
            width: auto;
            height: 25px;
            padding: 1px 12px;
        }

        h4 {
            font-weight: normal;
            font-size: 16px;
            margin: 0;
            padding: 6px 0;
        }

        .hint {
            font-size: 12px;
            color: #999;
            padding: 5px 0;
        }

        .inputs-wrap {
            height: 35px;
        }

        .button-wrap {
            float: left;
            overflow: hidden;
            width: 110px;
        }

        .text-box-wrap {
            float: left;
            margin-right: 10px;
        }

        .coupon-box {
            width: 48%;
            float: left;
        }

        .message-failure {
            line-height: 1.5em;
            color: red;
            font-weight: bold;
            padding: 5px 0;
        }

        .giftcard-box {
            width: 48%;
            float: left;
        }
    }
}

//estimate shipping module

.estimate-shipping {
    width: 328px;
    min-height: 100px;
    border: 1px solid #bbbbbb;
    margin-top: 10px;


    .hint {
        font-size: 12px;
        color: #999;
        padding-left: 10px;
        padding-top: 5px;
    }

    .shipping-options {
        padding: 5px 10px;

        .button-wrap {
            text-align: center;
        }

        .estimate-shipping-button {
            width: 80%;
        }

        .shipping-results {
            border: 1px solid #ccc;
            padding: 5px;

            .shipping-option-item {
                margin: 5px 0;
            }

            .option-name {
                font-weight: bold;
            }
        }

        table {
            width: 100%;

            td {
                font-size: 13px;
                padding: 5px 0;

                &.label {
                    width: 105px;
                    color: @gray;
                }

                .state-input, .country-input {
                    width: 150px;
                    height: 30px;
                }

                .form-control {
                    width: 140px;
                    display: inline-block;
                    height: 25px;
                    padding-top: 2px;
                    padding-bottom: 2px;
                    line-height: 25px;
                }
            }
        }
    }
}

//process-to-checkout

.process-to-checkout {
    display: block;
    margin: 0;
    border: 2px solid #ff6c00;
    text-align: center;
    color: white;
    line-height: 25px;
    cursor: pointer;
    font-size: 17px;
    font-weight: 600;

    button {
        width: 300px;
    }
}
